<template>
    <view class="globe_back">
        <view class="box">
            <view v-if="lists.rider_status == 5&&lists.is_refusal_to_refund==0" class="fw_bold f_40">售后处理中，请耐心等待</view>
            <view v-if="lists.rider_status == 5&&lists.is_refusal_to_refund==1" class="fw_bold f_40">商家同意退款</view>
			<view v-if="lists.rider_status == 5&&lists.is_refusal_to_refund==2" class="fw_bold f_40">商家拒绝退款</view>

            <!-- 商品 -->
            <view class="back_fff p_24 br_24 mt_24">
                <view class="flex">
                    <view>
                        <image class="shopImg" :src="lists.goods.gallery_images" mode="widthFix" v-if="lists.product_type==2"></image>
                        <image class="shopImg" :src="lists.specifications.goods_image" mode="widthFix" v-if="lists.product_type==7"></image>
                    </view>
                    <view>
                        <view class="fw_bold f_32 listTitle" v-if="lists.product_type==2">{{lists.goods.license_plate_number}}</view>
                        <view class="fw_bold f_32 listTitle" v-if="lists.product_type==7">{{lists.specifications.product_name}}</view>
                        <view class="flex justify_content_between">
                            <view class="cl_999CA3 mr_24 f_28" v-if="lists.product_type==2">车架号：{{lists.goods.frame_number}}</view>
                        </view>
                        <view class="flex justify_content_between mt_40 f_28">
                            <view class="flex" v-if="lists.product_type==2">
                              <view class="mintip" v-for="(item,index) in lists.goods.cz_label">{{item}}</view>
                            
                                <!-- <view class="mintip">2年内新车</view>
                                <view class="mintip">小牛</view> -->
                            </view>
                            <view class="flex" v-if="lists.product_type==7">
                              <view class="mintip" v-for="(item,index) in lists.specifications.guige">{{item}}</view>
                            
                                <!-- <view class="mintip">2年内新车</view>
                                <view class="mintip">小牛</view> -->
                            </view>
                            <view v-if="lists.product_type==2">￥{{lists.goods.moth_money}}</view>
                            <view v-if="lists.product_type==7">￥{{lists.specifications.money}}</view>
                        </view>
                    </view>
                </view>
               <!-- <view class="flex justify_content_between f_28 mt_16">
                    <view class="storeAddress">店铺地址：{{lists.address.address}}</view>
                    <u-icon name="arrow-right" size="16"></u-icon>
                </view> -->
            </view>
            <!-- 信息 -->
            <view class="detailedBox">
                <view class="flex justify_content_between detailed">
                    <view>售后原因</view>
                    <view>{{lists.refund_content}}</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>租用时间</view>
                    <view>{{lists.lease}}</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>已使用时间</view>
                    <view>{{lists.y_time_q}}</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>可退金额</view>
                    <view>￥{{lists.money.k_money}}</view>
                </view>
                <view class="flex justify_content_between detailed" v-if="lists.rider_status == 5&&lists.is_refusal_to_refund==1">
                    <view>退款方式</view>
                    <view>原路退回</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>申请时间</view>
                    <view>{{lists.refund.refund_apply_time}}</view>
                </view>
                <view v-if="type == 1" class="flex justify_content_between detailed">
                    <view>退款时间</view>
                    <view>{{lists.refund.refund_apply_time}}</view>
                </view>
            </view>
            <!-- 描述凭证 -->
            <view class="detailedBox">
                <view class="title">描述凭证</view>
                <view class="info">{{lists.refund.describe_credentials}}</view>
                <view class="infoImgBox">
                    <image class="infoimg" :src="item" mode="widthFix" v-for="(item,index) in lists.refund.refund_image"></image>
                   <!-- <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image>
                    <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image> -->
                </view>
            </view>
        </view>
        <view style="height: 20px"></view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            url: '',
            type: 1 ,//0售后处理完成，1买家取消订单
			t:0,
			id:0,
			lists:'',
        };
    },
    onShow() {
        this.url = this.baseUrl + this.imgPath;
    },
    onLoad(e) {
		this.id=e.id
		this.t=e.t
		this.list()
	},
    methods: {
		list(){
			this.$.ajax(1, "POST", "users/service_order", {
					order_id:this.id,
					lat:39.222,
					lng:117.333,
				}, (res) => {
					if(res.code==200){
						// this.$.ti_shi(res.msg)
						this.lists=res.data
						 
					}else{
						this.$.ti_shi(res.msg)
					}
				})
		},
	}
};
</script>

<style scoped lang="scss">
.mintip {
    font-size: 20rpx;
    color: #3377ff;
    background: #f7faff;
    border-radius: 8rpx;
    padding: 8rpx 16rpx;
    margin-right: 8rpx;
}
.storeAddress {
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.buyerInfo {
    padding: 24rpx 32rpx;
    background: white;
    border-radius: 24rpx;
    margin: 24rpx 0;
    font-size: 28rpx;
    .name {
        margin-bottom: 16rpx;
    }
    .phone {
        color: #999ca3;
        margin-left: 16rpx;
    }
}
.shopImg {
    width: 200rpx;
    height: 200rpx;
    border-radius: 16rpx;
    margin-right: 24rpx;
}
.listTitle {
    width: 400rpx;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.box {
    padding: 32rpx;
    .addTitle {
        font-size: 40rpx;
        color: #00091a;
        font-weight: bold;
    }
    .addText {
        font-size: 28rpx;
        color: #999ca3;
        margin-top: 16rpx;
    }
    .icon_r {
        width: 32rpx;
        height: 32rpx;
        vertical-align: middle;
        margin-top: 36rpx;
    }
    .address {
        background: white;
        border-radius: 16rpx;
        padding: 24rpx;
    }
    .coupon,
    .detailedBox {
        background: white;
        border-radius: 16rpx;
        padding: 24rpx;
        margin-top: 24rpx;
    }
    .ProductMap {
        width: 200rpx;
        height: 200rpx;
        border-radius: 16rpx;
    }
    .couT {
        width: 30%;
        margin: 16rpx 0;
        color: #333a47;
        font-size: 28rpx;
    }
    .coutext {
        width: 70%;
        padding: 16rpx 0;
        font-size: 28rpx;
        color: #ccced1;
    }
    .couponIcon {
        width: 32rpx;
        height: 32rpx;
        vertical-align: middle;
    }
    .detailed {
        color: #333a47;
        font-size: 28rpx;
        margin-bottom: 32rpx;
    }
}
.button {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16rpx 32rpx;
    background: #ffffff;
    .buy {
        width: 176rpx;
        height: 76rpx;
        line-height: 76rpx;
        text-align: center;
        color: white;
        border-radius: 8rpx;
        background-image: linear-gradient(to right, #ff924d, #ff6401);
    }
}
.title {
    font-size: 28rpx;
    color: #333a47;
}
.info {
    font-size: 28rpx;
    color: #00091a;
    margin-top: 32rpx;
}
.infoimg {
    width: 140rpx;
    height: 140rpx;
    border-radius: 16rpx;
    margin: 24rpx 12rpx;
}
.store {
    padding: 24rpx;
    background: white;
    border-radius: 24rpx;
    margin-top: 30rpx;
}
.storeImg {
    width: 96rpx;
    height: 96rpx;
    border-radius: 16rpx;
    margin-right: 16rpx;
}
.storeTitle {
    color: #00091a;
    font-size: 32rpx;
    margin-bottom: 8rpx;
}
.address {
    width: 48rpx;
    height: 48rpx;
    display: block;
    margin: 0 auto;
}
.addressText {
    color: #999ca3;
    font-size: 24rpx;
}
.salesVolume {
    color: #999ca3;
    font-size: 28rpx;
}
</style>
